<!--#set var="TITLE" value="<?= $this->getEntry('Title') ?>" -->
<!--#set var="METADATA" value="<?= $metadata ?>" -->
<!--#set var="LICENSING" value="<?= $licensing ?>" -->
<!--#set var="FILES" value="<?= $this->getEntry('Files') ?>" -->
<!--#set var="DESCRIPTION" value="<?= $this->getEntry('Description') ?>" -->
<!--#if expr="!$FROM || $FROM = <?= $year ?>" -->
<!--#if expr="!$LANG || $LANG = <?= $lang ?>" -->
<!--#if expr="!$TYPE || $TYPE = <?= $length ?>" -->
<!--#if expr="!$LENGTH || $LENGTH = <?= $this->getEntry('Type') ?>" -->
<!--#if expr="!$MEDIA || $MEDIA = /(<?= implode('|', $media) ?>)/" -->
<!--#if expr="!$SEARCH || $TITLE = /$SEARCH/ || $METADATA = /$SEARCH/ || $DESCRIPTION = /$SEARCH/" -->
<div class="item" id="<?= $this->getEntry("Id") ?>">
<details <?= $this->getEntry("Open") ? 'open="open"' : '' ?>>
  <summary><span>
    <?= $this->getEntry("Introductory") ? '<span class="introductory">*</span>' : "" ?> 
    <a href="?from=<?= $year ?>"><?= $year ?></a>
    <a href="?lang=<?= $lang ?>"><?= $this->getEntry('Language') ?></a>
    <a href="?type=<?= $this->getEntry('Type') ?>"><?= $this->getEntry('Type') ?></a>
    <a href="?length=<?= $length ?>"><?= $this->lengthToMin[$length] ?></a>
    <?php foreach ($media as $m): ?>
    <a href="?media=<?= $m ?>"><?= ucfirst($m) ?></a><br />
    <?php endforeach; ?>
    <b><!--#echo encoding="none" var="TITLE" --></b>
    <span><!--#echo encoding="none" var="SUBTITLE" --></span></span></summary>
  <p class="metadata"><!--#echo encoding="none" var="METADATA" --></p>
  <p class="licensing"><!--#echo encoding="none" var="LICENSING" --></p>
  <!--#echo encoding="none" var="FILES" -->
  <div class="emph-box"><!--#echo encoding="none" var="DESCRIPTION" --></div>
</details>
</div>
<!--#endif --><!--#endif --><!--#endif --><!--#endif --><!--#endif --><!--#endif -->
